<template>
  <div>
    <el-button type="success" size="default" @click="changeFun">
      改变爷爷的列表
    </el-button>
  </div>
</template>

<script setup>
import { ref, onMounted } from "vue";

import bus from "@/util/mitt.js";
const changeFun = () => {
  //   bus.emit("changeAll", 123456);
  bus.emit("changeTEST", 77777777777777777);
};

bus.on("change123", (val) => {
  console.log(val);
});
</script>

<style lang="less" scoped></style>
